package com.me.chat.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * websocket 的配置类
 * @Author: qiu
 * @Date: 2021/4/1 10:42
 */

@Configuration
public class WebSocketConfig {

    @Bean
    @Profile({"local","ty"})
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
